<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // map跟对象类似,任意类型的数据可以当作对象的键
        const a= {a:1}
        const map =new Map()
        map.set(a,100)
        console.log(map)
// 
const b= {a:1}
        const rrr =new Map()
        rrr.set(a,100)
        console.log(rrr)
    </script>
</body>
</html>